home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / del102.zip / DELETE.DOC next >
Text File  |  1993-02-08  |  9KB  |  271 lines

  1. DELETE.DOC -- DOCUMENTATION FOR DELETE.EXE
  2.  
  3.  
  4. WHAT IS THIS?
  5.  
  6. DELETE.EXE is an enhancement of the DEL or ERASE internal command
  7. that comes with DOS that:
  8.  
  9.     o allows multiple file specifications on the command line;
  10.  
  11.     o will optionally delete Hidden, System, or Read Only files;
  12.  
  13.     o will optionally prompt for permission to delete any file;
  14.  
  15.     o will optionally delete files in directories below the
  16.       current one;
  17.  
  18.     o will optionally remove empty directories below the current
  19.       one;
  20.  
  21.     o will optionally overwrite files before deleting them.
  22.  
  23.  
  24. HOW DO I RUN IT?
  25.  
  26. Syntax:
  27. D:\MPJ\DELETE\DELETE.EXE [switches] [filespec...]
  28. Switches start with / (not -), and are case insensitive.
  29.   /? or /H Help: show help message
  30.   /F or /Z Force or Zap: delete hidden, system, and read-only
  31.      files
  32.   /G Overwrite eight times, then delete permanently
  33.   /O Overwrite twice then delete permanently
  34.   /P or /C Prompt y/N for Confirmation to delete each file
  35.   /Q Quiet: don't display names of deleted files
  36.   /R Recursively remove empty subdirectories
  37.   /S Recurse through subdirectories but don't remove empty ones
  38.  
  39. Note: doesn't ask 'Are you sure?' to delete a directory without
  40. /P
  41.  
  42. For example:
  43.  
  44. DELETE *.OBJ *.SYM
  45. Deletes all normal files with the suffixes .OBJ and .SYM in the
  46. current directory.
  47.  
  48. DELETE /P *.*
  49. Presents the name of each file in the current directory to you
  50. and asks if you want to delete it.  Y or y cause the file to be
  51. deleted, Esc or Ctrl-C cause the program to exit, anything else
  52. skips the file.
  53.  
  54. DELETE /O C:\PRIVATE\SALARY.LST
  55. PERMANENTLY deletes the file C:\PRIVATE\SALARY.LST.
  56.  
  57. DELETE /S /P C:\*.BAK
  58. Presents the name of every file on drive C: with a name ending in
  59. .BAK to you and asks you if you want to delete it.
  60.  
  61. ARE YOU SURE?
  62.  
  63. The DOS DEL command sometimes asks you if you are sure, and
  64. sometimes it doesn't.  If you enter a file specification that
  65. isn't *.* or a directory name, DOS won't ask you permission, even
  66. if your file specification matches all of the files in the
  67. directory.  A safer approach is to show you the file name of each
  68. file, then ask if you want to delete it, like DELETE does when
  69. you specify the /P option.  That is what the DELQ.BAT file does. 
  70. If you find the "Are you sure?" prompt to be an annoyance, and
  71. like to live a little dangerously (like I do), then leave the /P
  72. switch off.  Then you won't be asked if you are sure, even if you
  73. are deleting entire subdirectories.
  74.  
  75. At the y/N prompt, pressing y or Y will result in the file being
  76. deleted or the directory being removed.  Any other key will cause
  77. the file or directory to be left alone.
  78.  
  79.  
  80. OVERWRITING
  81.  
  82. The overwrite options are intended to PERMANENTLY delete
  83. sensitive data.
  84.  
  85. /O Causes one overwrite of the file with the value 34 hex, then
  86. the value CB hex, followed by a verification that the value CB
  87. was in fact written over the file.  If the overwrite fails for
  88. any reason, the message "OVERWRITE FAILED" will appear on the
  89. screen.  Note that CB hex is the compliment of 34 hex. After each
  90. of the write operations, the DOS reset disk function (interrupt
  91. 21 hex, function 0D hex) is called in hopes that this will
  92. prevent write delay cache programs from defeating the overwrite.
  93. This option also deletes the name in the directory entry.
  94.  
  95. /G Does what /O does four times.  This is for the purpose of
  96. obliterating a file beyond the possibility of recovery even with
  97. sophisticated lab equipment that can detect what was overwritten
  98. a few times by the strength of the magnetic fields on the disk.
  99.  
  100. Either one of these options will cause standard unerase or
  101. undelete utilities to fail, unless you have some TSR operating
  102. that defeats the overwrites.
  103.  
  104. Overwrites occur in 1024 byte blocks, so if you are using a disk
  105. cluster size that is larger, there may be data after the end of a
  106. file that does not get overwritten.  Likewise, if you are using a
  107. utility that compresses data on your disk on the fly, the
  108. overwriting data will likely be smaller than the data being
  109. overwritten, thus defeating the security of the overwrites.  In
  110. most cases, however, if you use one of these options, there is NO
  111. WAY to recover the lost data.  Data recovery utilities probably
  112. won't even be able to tell you the name of the files that were
  113. deleted, let alone what was in them.
  114.  
  115. SUGGESTED ALIAS
  116.  
  117. If you are using DOSKEY, CED, or some similar program, you can
  118. override DOS's DEL function with a command alias, like
  119.  
  120. DOSKEY DEL=DELETE /P $*
  121.  
  122. This would be a safer way to delete -- asking you for
  123. confirmation with each file.  On the other hand, if you work with
  124. data that you need to keep private on a computer that other
  125. people need access to, you may prefer to add the overwrite
  126. option, like
  127.  
  128. DOSKEY DELQ=DELETE /P /O $*
  129.  
  130. If you get tired of the y/N prompts, you could leave the /P
  131. option out of the above examples.
  132.  
  133.  
  134. RECURSION THROUGH SUBDIRECTORIES
  135.  
  136. To delete all files in the current directory and all
  137. subdirectories below this one AND to remove all empty
  138. subdirectories below this one, use the /R switch:
  139.  
  140. DELETE /R *.*
  141.  
  142. To delete specified files in the current directory and all
  143. subdirectories, but remove no subdirectories, use the /S switch:
  144.  
  145. DELETE /S *.BAK *.BK!
  146.  
  147. These recursion options should obviously be used with caution,
  148. but they can save you a lot of time when you need them.
  149.  
  150.  
  151. DANGER!
  152.  
  153. Because this program was designed to delete data, you need to
  154. watch what you are doing and not delete anything you don't want
  155. to.  Be especially careful if you are using the /Z, /F, /R, /S,
  156. /O, or /G options.  I recommend the use of the /P or /C options
  157. as much as you can stand it, unless you are sure you know what
  158. you are doing.
  159.  
  160. WARNING:  DELETING THE SYSTEM FILES IN THE ROOT DIRECTORY OF YOUR
  161. BOOT DRIVE WILL MAKE IT INCAPABLE OF BOOTING.
  162.  
  163. WARNING:  ONCE YOU DELETE A FILE WITH THE /O OR /G OPTIONS, THERE
  164. IS NO WAY YOU CAN GET IT BACK WITH ANY UNERASE UTILITY THAT I AM
  165. AWARE OF.
  166.  
  167. LEGALITIES
  168.  
  169. DELETE version 1.02 Copyright (C) 1992-1993 Michael Paul Johnson.
  170. All rights reserved. Even though I am aware of no bugs in this
  171. program, it is provided with no warranty.  The user assumes all
  172. risk with respect to data loss due to improper operation or
  173. malfunction of this program.  However, if you find a bug, please
  174. tell me so I can fix it.  This is share ware.  You are free to
  175. copy and distribute without modification for the purpose of
  176. evaluation.  If you decide to use this program regularly, you are
  177. required to register it.
  178.  
  179.  
  180. REGISTRATION FEES & BENEFITS
  181.  
  182. For original disk, printed documentation, and registration: $15.
  183.  
  184. For registration only, $10 per copy.  (No disk will be sent, but
  185. your name & address will be added to the registration data base).
  186.  
  187. For site license registration, unlimited copies for use at the
  188. same corporation:  $100.  Includes one original disk and one set
  189. of printed documentation.
  190.  
  191. Please send registration fee, the name of this program, and, if
  192. applicable, the size of disk you want (3.5" or 5.25") to:
  193.  
  194.     Mike Johnson
  195.     PO BOX 1151
  196.     LONGMONT CO 80502-1151
  197.     USA
  198.  
  199.  
  200. HOW TO CONTACT THE AUTHOR
  201.  
  202. 1.  By mail at the above address.
  203.  
  204. 2.  At the Rainbow Missions BBS, 303-938-9654.  The latest
  205. versions of Mike Johnson's software are here.  (This is the
  206. fastest way).
  207.  
  208. 3.  Internet:  mikej@exabyte.com
  209.  
  210. 4.  CompuServe:  71331,2332
  211.  
  212. 5.  At home at 303-772-1773, on Saturdays only.
  213.  
  214.  
  215. REVISION HISTORY
  216.  
  217.  6 Feb 93  1.02  Added disk reset function.  Made Ctrl-C & Esc
  218.                  exit program at y/N prompt.  Increased depth
  219.          of directory recursion possible.
  220. 24 Aug 92  1.01  Minor display formatting changes.
  221. 29 Apr 92  1.00  Initial release.
  222.  
  223.  
  224.                               INVOICE
  225.  
  226. Remit to:                                 From:
  227.  
  228. Mike Johnson                              ______________________
  229.  
  230. PO Box 1151                               ______________________
  231.  
  232. Longmont CO 80502-1151                    ______________________
  233.  
  234.                                           ______________________
  235.  
  236.  
  237.                       Contact person:
  238.  
  239.                       ______________________
  240.  
  241.                       ______________________
  242.  
  243.  
  244. Quantity  Description                       Unit Price    Total
  245.  
  246.           DELETE registration with disk
  247. ________  & printed documentation.           $15.00       ______
  248.  
  249.  
  250.           DELETE single copy registration
  251. ________  only.                              $10.00       ______
  252.  
  253.  
  254.           Site license for unlimited use
  255.       of DELETE at one corporation
  256.       (includes one disk & printed
  257. ________  documentation).                   $100.00       ______
  258.  
  259.  
  260.  
  261.                                               Total       ______
  262.  
  263.  
  264.  
  265. I prefer 5.25"____   3.5"____  disks.
  266.  
  267. Note that the DELETE software has been delivered and accepted by
  268. the customer.  Upon reciept of this paid invoice, the printed
  269. documentation and disks paid for will be sent.
  270.  
  271.